package ru.alt22.visor.php.ui.core.wizards;

import org.eclipse.php.internal.core.phpModel.phpElementData.PHPClassData;


public class TypePageOptions {
	
	private String folderName;
	private String typePrefix;
	private String typeName;
	private String supertypeName;
	private PHPClassData[] interfaces;
	private boolean isConstructor;
	private boolean isConstructorPublic;
	private boolean isConstructorProtected;
	private boolean isDestructor;
	private boolean isInherited;
	private boolean isSuperclassConstructor;
	private boolean isConstructorFinal;
	private boolean isConstructorAbstract;
	private boolean isConstructorPrivate;

	public TypePageOptions(NewTypeWizardPage page) {
		folderName = page.getFolderName();
		typePrefix = page.getTypePrefix();
		typeName = page.getTypeName();
		supertypeName = page.getSupertypeName();
		interfaces = page.getImplements();

		isConstructor = page.isConstructor();
		isDestructor = page.isDestructor();
		isInherited = page.isInherited();
		
		isSuperclassConstructor = page.isSuperclassConstructor();
		isConstructorAbstract = page.isConstructorAbstract();
		isConstructorFinal = page.isConstructorFinal();
		isConstructorPrivate = page.isConstructorPrivate();
		isConstructorProtected = page.isConstructorProtected();
		isConstructorPublic = page.isConstructorPublic();
	}

	public String getFolderName() {
		return folderName;
	}

	public String getTypePrefix() {
		return typePrefix;
	}

	public String getTypeName() {
		return typeName;
	}

	public String getSupertypeName() {
		return supertypeName;
	}
	
	public PHPClassData[] getImplements() {
		return interfaces;
	}

	public boolean isConstructor() {
		return isConstructor;
	}

	public boolean isConstructorPublic() {
		return isConstructorPublic;
	}

	public boolean isConstructorProtected() {
		return isConstructorProtected;
	}

	public boolean isConstructorPrivate() {
		return isConstructorPrivate;
	}

	public boolean isConstructorAbstract() {
		return isConstructorAbstract;
	}

	public boolean isConstructorFinal() {
		return isConstructorFinal;
	}

	public boolean isSuperclassConstructor() {
		return isSuperclassConstructor;
	}

	public boolean isInherited() {
		return isInherited;
	}

	public boolean isDestructor() {
		return isDestructor;
	}

}